<!-- *document|document-filetype-icon
     ====================================================================== -->
<xsl:template match="document" mode="document-filetype-icon"
  type="render-internal" label="Filetype Icon"
>

  <!--variable declaration-->
  <xsl:variable name="filetype" select="disp:get-filetype(.)" />
  <xsl:variable name="filetype-icon" select="disp:get-filetype-icon(.)" />

  <!--logic-->
  <xsl:if test="not($frame = 'cache') and contains($filetype-icon, 'zip')">
    <a href="{@url}" class="unicode-url">      <img
        src="{$url-img-base}/filetype-zip.gif" alt="{$filetype}" class="filetype"
      />
    </a>

  </xsl:if>
</xsl:template>
